package com.bwie.system.service.impl;

import com.bwie.common.domain.Men;
import com.bwie.system.mapper.MenMapper;
import com.bwie.system.service.MenService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenServiceImpl implements MenService {

    @Autowired
    MenMapper menMapper;

    @Override
    public PageInfo<Men> menlistt(Men men) {
        PageHelper.startPage(men.getPageNum(),men.getPageSice());
      List<Men>menList= menMapper.menlistt(men);
        PageInfo<Men> menPageInfo = new PageInfo<>(menList);
        return  menPageInfo;
    }
}
